SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
create view [dbo].[diaalta]
as
select agente,min(fechaalta) as inicio from sagenet.dbo.tb_serviciosagentes group by agente 
GO
